<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
ob_start();
ob_end_clean();
/*header('Access-Control-Allow-Origin:*');
// // 响应类型
header('Access-Control-Allow-Methods:GET,POST');
// // 响应头设置
header('Access-Control-Allow-Headers:x-requested-with,content-type');*/

//header("Access-Control-Allow-Origin: *");

header('Access-Control-Allow-Headers: X-Requested-With,X_Requested_With');
header("Access-Control-Allow-Methods:GET, POST, OPTIONS, PUT, DELETE");
header("Access-Control-Allow-Origin: *"); // 允许任意域名发起的跨域请求
// [ 应用入口文件 ]
header("Content-Type:application/json; charset=utf-8");

// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';


